#!/bin/sh
set -e

chown www-data:www-data -R /data

# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
    set -- php-fpm "$@"
fi

exec "$@"
